<ion-view class="bg">
  <ion-header-bar class="bar bar-positive">
    <button class="button back-button buttons icon ion-ios-arrow-left button-clear" nav-direction="back" ui-sref="abnormalList">返回</button>
    <h3 class="title">选择运单</h3>
  </ion-header-bar>
    <ion-content>
      <div class="bar bar-header item-input-inset" style="border-bottom: 0;">
        <label class="item-input-wrapper">
          <i class="icon ion-ios-search placeholder-icon"></i>
          <input type="search" placeholder="运单号" id="searchWb" ng-model="search.wayBillNo">
        </label>
        <i class="ion-qr-scanner" style="color: #666;font-size: 25px;margin-left: -25px;" ng-click="qrScanner()"></i>
      </div>
      <ion-list class="myList" ng-if="showloading == false">
        <h5 ng-if="searchResult.WAYBILL_ID==undefined" class="notFound">未找到数据</h5>
        <li class="item li" ui-sref="reportAbnl({WAYBILL_ID:searchResult.WAYBILL_ID,WAYBILL_NO:searchResult.WAYBILL_NO,WAYBILL_STATUS:searchResult.WAYBILL_STATUS})" ng-if="searchResult.WAYBILL_ID!=undefined">
          <div>
            <i>承运单号</i>
            <i class="value" style="color: #ff9800">{{searchResult.WAYBILL_NO}}</i>
          </div>
          <img src="img/waybillState-{{searchResult.WAYBILL_STATUS}}.png" class="stateImg">
          <div>
            <i>收货人</i>
            <i class="value">{{searchResult.R_CUSTOMER_NAME}}</i>
          </div>
          <div>
            <i>送货方式</i>
            <i class="value" ng-if="searchResult.DELIVERY_TYPE==0">自提</i>
            <i class="value" ng-if="searchResult.DELIVERY_TYPE==1">上楼</i>
            <i class="value" ng-if="searchResult.DELIVERY_TYPE==2">送货</i>
          </div>
        </li>
      </ion-list>
    </ion-content>
</ion-view>
